﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Computer
    {
        private string brand;
        private IUSB usb1;
        private IUSB usb2;
        public string Brand
        {
            get { return this.brand; }
            set { this.brand = value; }
        }
        public IUSB Usb1
        {
            get { return this.usb1; }
            set { this.usb1 = value; }
        }
        public IUSB Usb2
        {
            get { return this.usb2; }
            set { this.usb2 = value; }
        }
        public Computer(string brand)
        {
            this.brand = brand;
        }

        public void Start()
        {
            Console.WriteLine("{0}开机中...", this.brand);
        }

        public void ReadData()
        {
            this.usb1.Read();
            this.usb2.Read();
        }

        public void WriteData()
        {
            this.usb1.Write();
            this.usb2.Write();
        }

        public void End()
        {
            Console.WriteLine("{0}关机中...", this.brand);
        }
    }
}
